package com.ruoyi.db.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库模型之信息对象 db_table
 * 
 * @author ruoyi
 * @date 2022-07-10
 */
public class DbTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 库名 */
    @Excel(name = "库名")
    private String dbName;

    /** 表名 */
    @Excel(name = "表名")
    private String tableName;

    /** 表描述 */
    @Excel(name = "表描述")
    private String tableDesc;

    /** 数据库引擎 */
    @Excel(name = "数据库引擎")
    private String tableEngine;

    /** 自增开始值 */
    @Excel(name = "自增开始值")
    private Integer tableAutoIncrement;

    /** 字符集 */
    @Excel(name = "字符集")
    private String tableCharset;

    /** 表注释 */
    @Excel(name = "表注释")
    private String tableComment;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 创建者ID */
    private String createId;

    /** 更新者ID */
    private String updateId;

    /** 乐观锁 */
    private Integer version;

    /** 数据库模型之信息信息 */
    private List<DbTableColumn> dbTableColumnList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDbName(String dbName) 
    {
        this.dbName = dbName;
    }

    public String getDbName() 
    {
        return dbName;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setTableDesc(String tableDesc) 
    {
        this.tableDesc = tableDesc;
    }

    public String getTableDesc() 
    {
        return tableDesc;
    }
    public void setTableEngine(String tableEngine) 
    {
        this.tableEngine = tableEngine;
    }

    public String getTableEngine() 
    {
        return tableEngine;
    }
    public void setTableAutoIncrement(Integer tableAutoIncrement) 
    {
        this.tableAutoIncrement = tableAutoIncrement;
    }

    public Integer getTableAutoIncrement() 
    {
        return tableAutoIncrement;
    }
    public void setTableCharset(String tableCharset) 
    {
        this.tableCharset = tableCharset;
    }

    public String getTableCharset() 
    {
        return tableCharset;
    }
    public void setTableComment(String tableComment) 
    {
        this.tableComment = tableComment;
    }

    public String getTableComment() 
    {
        return tableComment;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(String updateId) 
    {
        this.updateId = updateId;
    }

    public String getUpdateId() 
    {
        return updateId;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    public List<DbTableColumn> getDbTableColumnList()
    {
        return dbTableColumnList;
    }

    public void setDbTableColumnList(List<DbTableColumn> dbTableColumnList)
    {
        this.dbTableColumnList = dbTableColumnList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dbName", getDbName())
            .append("tableName", getTableName())
            .append("tableDesc", getTableDesc())
            .append("tableEngine", getTableEngine())
            .append("tableAutoIncrement", getTableAutoIncrement())
            .append("tableCharset", getTableCharset())
            .append("tableComment", getTableComment())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("dbTableColumnList", getDbTableColumnList())
            .toString();
    }
}
